public class ArrayOps
{
   /**
      This method adds up the integer values in an array,
      with the integer sum returned at the end of the method.
      @param values, an array of integers, may be positive or negative
      @ return, the sum of the integers
   */
   public static int sumArray(int values[])
   {

      // your work here

      // initialize sum

      // add all elements to sum

      // return sum
      int sum=0;
      for(int i=0;i<values.length;i++){
         sum+=values[i];
      }
      return sum;
   }
}